{% extends "process/base.html" %}
{% load nm %}
{% load js %}

{% block head_resources %}
  {{block.super}}
  {% jsinclude "nm" %}
  {% jsinclude "tables" %}
{% endblock %}

{% block head %}
{{block.super}}
<script type="text/javascript">
$(function() {
    $(".proctable").tablesorter({
        textExtraction: function(node) {
            val = node.getAttribute("val");
            if (val == null)
                val = node.textContent || node.innerText;
            return val;
        },
    });
});
</script>
{% endblock %}

{% block content %}

<h1>Processes currently open</h1>

{% include "process/process_list.html" with procs=current %}

<h1>Processes closed in the last 30 days</h1>

{% include "process/process_list.html" with procs=last %}

<h2>Old-style processes</h2>

<p>
The process workflow has been reimplemented and this page lists only the processes using the new workflow.<br>
<a href="{% url 'processes' %}">Archive list of processes using the old workflow.</a>
</p>

{% endblock %}

